package com.applancer.model;

import android.os.Parcel;
import android.os.Parcelable;

public class FeedModel extends GeneralModel implements Parcelable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String title;
	private String content;
	private String date;
	private String author;
	private String url;
	private String urlImageThumb;
	private String CountCommentFB;
	private String CountLikeFB;
	private String CountShareFB;
	private String category;

	public FeedModel() {
		id = "";
		title = "";
		content = "";
		date = "";
		author = "";
		url = "";
		urlImageThumb = "";
		CountCommentFB = "";
		CountLikeFB = "";
		CountShareFB = "";
		category = "";
	}

	public FeedModel(Parcel in) {
		id = in.readString();
		title = in.readString();
		content = in.readString();
		date = in.readString();
		author = in.readString();
		url = in.readString();
		urlImageThumb = in.readString();
		CountCommentFB = in.readString();
		CountLikeFB = in.readString();
		CountShareFB = in.readString();
		category = in.readString();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrlImageThumb() {
		return urlImageThumb;
	}

	public void setUrlImageThumb(String urlImageThumb) {
		this.urlImageThumb = urlImageThumb;
	}

	public String getCountCommentFB() {
		return CountCommentFB;
	}

	public void setCountCommentFB(String countCommentFB) {
		CountCommentFB = countCommentFB;
	}

	public String getCountLikeFB() {
		return CountLikeFB;
	}

	public void setCountLikeFB(String countLikeFB) {
		CountLikeFB = countLikeFB;
	}

	public String getCountShareFB() {
		return CountShareFB;
	}

	public void setCountShareFB(String countShareFB) {
		CountShareFB = countShareFB;
	}

	/**
	 * @return the category
	 */
	public String getCategory() {
		return category;
	}

	/**
	 * @param category
	 *            the category to set
	 */
	public void setCategory(String category) {
		this.category = category;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(title);
		dest.writeString(content);
		dest.writeString(date);
		dest.writeString(author);
		dest.writeString(url);
		dest.writeString(urlImageThumb);
		dest.writeString(CountCommentFB);
		dest.writeString(CountLikeFB);
		dest.writeString(CountShareFB);
		dest.writeString(category);
	}

	public static final Parcelable.Creator<FeedModel> CREATOR = new Parcelable.Creator<FeedModel>() {
		public FeedModel createFromParcel(Parcel in) {
			return new FeedModel(in);
		}

		public FeedModel[] newArray(int size) {
			return new FeedModel[size];
		}
	};

}
